package com.swan.core.enums;

import com.swan.core.exception.ISwanExceptionEnum;

/**
 * @author zongf
 * @since 2023-04-16
 **/
public enum SwanExCodeEnum implements ISwanExceptionEnum {

    /** 未知系统异常 */
    UNKNOWN(-1, "未知系统异常"),

    PARAM_ERROR(400, "请求参数非法"),

    MYBATIS(300, "数据库映射"),

    ;

    private int code;

    private String message;


    SwanExCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public int code() {
        return 0;
    }

    @Override
    public String message() {
        return "";
    }
}
